package tpo.lmhprovider.lmhprovider.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Specs;
import tpo.lmhprovider.lmhprovider.dao.SpecsMapper;
import tpo.lmhprovider.lmhprovider.service.SpecsService;

import java.util.List;
import java.util.Map;

@Service
public class SpecsServiceImpl implements SpecsService {
    @Autowired
    SpecsMapper specsMapper;
    @Override
    public List<Specs> getSpecs(Map map) {
        return specsMapper.getSpecs(map);
    }

    @Override
    public int updateSpecs(Map map) {
        return specsMapper.updateSpecs(map);
    }

    @Override
    public int addSpecs(Map map) {
        return specsMapper.addSpecs(map);
    }

    @Override
    public int delSpecs(Map map) {
        return specsMapper.delSpecs(map);
    }

    @Override
    public int addWa_Sp(List wa_spList) {
        return specsMapper.addWa_Sp(wa_spList);
    }

    @Override
    public int delWa_Sp(int waresId) {
        return specsMapper.delWa_Sp(waresId);
    }
}
